﻿using MCPlatform.Components;
using MCPlatform.MotionLib.Base.AssitantClass;
using MCPlatform.MotionLib.Base.Environment;
using MCPlatform.Shared.Enums.Modes;
using MCPlatform.UI.Components;
using Panuon.WPF;
using Panuon.WPF.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using System.Windows.Documents;

namespace MCPlatform.Models
{
    public class SettingModel : NotifyPropertyChangedBase, INameProvider
    {

      
        /// <summary>
        /// 名称
        /// </summary>
        public string ControlName
        {
            get => _ControlName;
            set
            {
                Set(ref _ControlName, value);

            }
        }
        private string _ControlName = string.Empty;



        /// <summary>
        /// 速度设置
        /// </summary>
        public double VelocityRate
        {
            get => _VelocityRate;
            set
            {
                Set(ref _VelocityRate, value);
                
            }
        }
        private double _VelocityRate = 15;


        /// <summary>
        /// 是否开机自启动
        /// </summary>
        public bool IsAutoStart
        {
            get => _isAutoStart;
            set
            {
                Set(ref _isAutoStart, value);

              
                
            }
        }
        private bool _isAutoStart;



        public ProductionMode ProductionMode
        {
            get => _productionMode;
            set
            {
                Set(ref _productionMode, value);

            }
        }
        private ProductionMode _productionMode;



        public AutomaticSubMode AutomaticSubMode
        {
            get => _automaticSubMode;
            set
            {
                Set(ref _automaticSubMode, value);

            }
        }
        private AutomaticSubMode _automaticSubMode;

    }
}
